gtk4.git
14 years agoiconview: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 14:03:17 +0000 (14:03 +0000)]
iconview: Stop setting state flags on the style context for drawing

14 years agohsv: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 13:37:19 +0000 (13:37 +0000)]
hsv: Stop setting state flags on the style context for drawing

14 years agoexpander: Use the widget state flags as a base for drawing
Rui Matos [Mon, 19 Dec 2011 13:00:02 +0000 (13:00 +0000)]
expander: Use the widget state flags as a base for drawing

14 years agoeventbox: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 12:24:30 +0000 (12:24 +0000)]
eventbox: Stop setting state flags on the style context for drawing

14 years agoentry: Use the widget state flags as a base for drawing icons and text
Rui Matos [Sat, 17 Dec 2011 19:29:16 +0000 (19:29 +0000)]
entry: Use the widget state flags as a base for drawing icons and text

14 years agoentry: Stop setting state flags on the style context for drawing
Rui Matos [Sat, 17 Dec 2011 19:27:58 +0000 (19:27 +0000)]
entry: Stop setting state flags on the style context for drawing

14 years agocombobox: Stop setting state flags on the style context for drawing
Rui Matos [Sat, 17 Dec 2011 18:55:09 +0000 (18:55 +0000)]
combobox: Stop setting state flags on the style context for drawing

14 years agocellview: Stop checking for sensitivity on draw
Rui Matos [Fri, 16 Dec 2011 23:04:49 +0000 (23:04 +0000)]
cellview: Stop checking for sensitivity on draw

This is needless since GtkCellRenderer does it consistently before rendering.

14 years agocellrenderertoggle: Use the cell renderer's state flags as a base for rendering
Rui Matos [Fri, 16 Dec 2011 19:49:31 +0000 (19:49 +0000)]
cellrenderertoggle: Use the cell renderer's state flags as a base for rendering

This allows us to pick the underlying widget's state flags that we don't
explicitly set here.

14 years agocellrenderer: Use the widget state flags as a base for cell renderers' state
Rui Matos [Fri, 16 Dec 2011 19:45:53 +0000 (19:45 +0000)]
cellrenderer: Use the widget state flags as a base for cell renderers' state

14 years agocheckmenuitem: Clean up state flags handling on drawing
Rui Matos [Thu, 15 Dec 2011 19:36:27 +0000 (19:36 +0000)]
checkmenuitem: Clean up state flags handling on drawing

14 years agocheckbutton: Use the widget state flags as a base for drawing the indicator
Rui Matos [Thu, 15 Dec 2011 02:43:49 +0000 (02:43 +0000)]
checkbutton: Use the widget state flags as a base for drawing the indicator

Instead of building a set of state flags specifically for drawing the
indicator, base it on the underlying widget state flags.

14 years agocheckbutton: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 02:39:49 +0000 (02:39 +0000)]
checkbutton: Stop setting state flags on the style context for drawing

14 years agocalendar: Use the widget state flags as a base for drawing arrows
Rui Matos [Thu, 15 Dec 2011 01:44:46 +0000 (01:44 +0000)]
calendar: Use the widget state flags as a base for drawing arrows

This allows drawing calendar arrows in all possible states the main widget may
be in.

The arrow_state array is converted into a bit field since it only really needs
to store boolean information about prelight for each arrow.

14 years agocalendar: Use the widget state flags as a base for drawing days
Rui Matos [Thu, 15 Dec 2011 01:39:00 +0000 (01:39 +0000)]
calendar: Use the widget state flags as a base for drawing days

Instead of building a set of state flags specifically for drawing days, base
it on the underlying widget state flags.

14 years agobutton: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:35:48 +0000 (01:35 +0000)]
button: Stop setting state flags on the style context for drawing

14 years agoarrow: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:35:01 +0000 (01:35 +0000)]
arrow: Stop setting state flags on the style context for drawing

14 years agoaccellabel: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:33:01 +0000 (01:33 +0000)]
accellabel: Stop setting state flags on the style context for drawing

14 years agowidget: Set style flags on the style context when the flags are set
Rui Matos [Thu, 15 Dec 2011 01:29:26 +0000 (01:29 +0000)]
widget: Set style flags on the style context when the flags are set

This will allow us to simplify most draw methods by not having to explicitly
set the style flags on the context.

14 years agowidget: Always propagate state flags to all children
Rui Matos [Sun, 11 Dec 2011 19:20:02 +0000 (19:20 +0000)]
widget: Always propagate state flags to all children

https://bugzilla.gnome.org/show_bug.cgi?id=666126

14 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 19 Dec 2011 19:20:28 +0000 (20:20 +0100)]
Updated POTFILES.in

14 years agobump glib depend to 2.31.6
Ryan Lortie [Mon, 19 Dec 2011 19:03:32 +0000 (14:03 -0500)]
bump glib depend to 2.31.6

14 years agoGtkApplication: add menu API
Ryan Lortie [Mon, 19 Dec 2011 17:33:21 +0000 (12:33 -0500)]
GtkApplication: add menu API

We add the app-menu and menubar public APIs to GtkApplication while
leaving the implementation in GApplication.

The actual implementation will be moved soon.

14 years agomissing file
Ryan Lortie [Sat, 17 Dec 2011 21:14:18 +0000 (16:14 -0500)]
missing file

14 years agoGtkApplication: document relationship to gdkthreads
Ryan Lortie [Sat, 17 Dec 2011 18:17:31 +0000 (13:17 -0500)]
GtkApplication: document relationship to gdkthreads

14 years agoGtkApplicationWindow: deal with remote actions
Ryan Lortie [Sat, 17 Dec 2011 17:50:02 +0000 (12:50 -0500)]
GtkApplicationWindow: deal with remote actions

Deal with remote action invocations correctly by implementing
GRemoteActionGroup in the same way that GApplication does and pushing
remote activations through the before/after_emit functions of the
GApplication associated with the window.

This is the last part of getting the threading situation right.

https://bugzilla.gnome.org/show_bug.cgi?id=665737

14 years agoGtkApplication: lock gdk on incoming messages
Ryan Lortie [Sat, 17 Dec 2011 06:00:38 +0000 (01:00 -0500)]
GtkApplication: lock gdk on incoming messages

When we have incoming activations or action invocations we should
acquire the GDK lock, just in case the program in question is using gdk
threads.

https://bugzilla.gnome.org/show_bug.cgi?id=665737

14 years agoMove X property handling to GtkApplicationWindow
Ryan Lortie [Sat, 17 Dec 2011 17:28:30 +0000 (12:28 -0500)]
Move X property handling to GtkApplicationWindow

Don't try to deal with this using a qdata and signal connections in
GtkApplication.

14 years agoDocument that gtk_init is called without argv
Matthias Clasen [Sat, 17 Dec 2011 05:22:06 +0000 (00:22 -0500)]
Document that gtk_init is called without argv

This answers a question in bug 661823.

14 years agoFix a typo
Matthias Clasen [Fri, 16 Dec 2011 03:20:42 +0000 (22:20 -0500)]
Fix a typo

14 years agoForgotten file
Matthias Clasen [Fri, 16 Dec 2011 03:19:54 +0000 (22:19 -0500)]
Forgotten file

14 years agoShow off some menus
Matthias Clasen [Thu, 15 Dec 2011 05:26:02 +0000 (00:26 -0500)]
Show off some menus

14 years agoSome more menu-related docs
Matthias Clasen [Wed, 14 Dec 2011 11:51:54 +0000 (06:51 -0500)]
Some more menu-related docs

14 years agoPlugman: Find the plugins menu in a better way
Matthias Clasen [Wed, 14 Dec 2011 11:32:13 +0000 (06:32 -0500)]
Plugman: Find the plugins menu in a better way

Now that GtkBuilder finds named submenus, there's no need for
the clumsy menumodel navigation anymore.

14 years agoGtkBuilder: pick up named submenus
Matthias Clasen [Wed, 14 Dec 2011 05:13:32 +0000 (00:13 -0500)]
GtkBuilder: pick up named submenus

When parsing GMenu xml, use the facility for pick up named submenus.
Note that <section id='foo'>...</section> is _not_ a named submenu.
It is a named item with an unnamed submenu :-(

14 years agoHandle menu changes.
William Hua [Mon, 12 Dec 2011 03:33:45 +0000 (22:33 -0500)]
Handle menu changes.

14 years agoAdd accelerators to bloatpad.
William Hua [Mon, 12 Dec 2011 03:17:51 +0000 (22:17 -0500)]
Add accelerators to bloatpad.

14 years agoRefactor GMenuModel rendering for Mac OS.
William Hua [Mon, 12 Dec 2011 02:49:21 +0000 (21:49 -0500)]
Refactor GMenuModel rendering for Mac OS.

14 years agogtkquartz-menu: fix some leaks
William Hua [Sun, 11 Dec 2011 23:46:55 +0000 (18:46 -0500)]
gtkquartz-menu: fix some leaks

14 years agobegin adding menu accelerators
William Hua [Sun, 11 Dec 2011 22:39:30 +0000 (17:39 -0500)]
begin adding menu accelerators

Show accelerators in menus.

14 years agoTwo small fixes
Matthias Clasen [Mon, 12 Dec 2011 02:16:24 +0000 (21:16 -0500)]
Two small fixes

Don't leak a session bus reference, and don't assume a display
is X11 just because we've built the X11 backend.

14 years agoFix up includes
Matthias Clasen [Sun, 11 Dec 2011 16:25:41 +0000 (11:25 -0500)]
Fix up includes

14 years agobloatpad: add 'New Window' menu item
Ryan Lortie [Sun, 11 Dec 2011 05:06:50 +0000 (00:06 -0500)]
bloatpad: add 'New Window' menu item

14 years agobegin GtkApplication menu support for Mac OS
William Hua [Sat, 10 Dec 2011 23:51:30 +0000 (18:51 -0500)]
begin GtkApplication menu support for Mac OS

14 years agoAnother plugin, for good measure
Matthias Clasen [Fri, 9 Dec 2011 18:51:39 +0000 (13:51 -0500)]
Another plugin, for good measure

14 years agoSomething for the eye
Matthias Clasen [Fri, 9 Dec 2011 18:27:10 +0000 (13:27 -0500)]
Something for the eye

14 years agoAdd an action too
Matthias Clasen [Fri, 9 Dec 2011 18:17:35 +0000 (13:17 -0500)]
Add an action too

14 years agowip example for plugin/gmenu interaction
Matthias Clasen [Fri, 9 Dec 2011 18:09:38 +0000 (13:09 -0500)]
wip example for plugin/gmenu interaction

14 years agoUpdate testgmenu to latest api changes
Matthias Clasen [Fri, 9 Dec 2011 16:34:39 +0000 (11:34 -0500)]
Update testgmenu to latest api changes

14 years agoGtkApplicationWindow: share one GActionMuxer
Ryan Lortie [Thu, 8 Dec 2011 05:15:45 +0000 (00:15 -0500)]
GtkApplicationWindow: share one GActionMuxer

Use the same GActionMuxer for menubars and accels instead of recreating
a new one each time.

14 years agoDocumentation additions
Matthias Clasen [Thu, 8 Dec 2011 04:55:33 +0000 (23:55 -0500)]
Documentation additions

14 years agoGtkApplicationWindow: Always install accelerators
Matthias Clasen [Mon, 5 Dec 2011 22:50:17 +0000 (17:50 -0500)]
GtkApplicationWindow: Always install accelerators

We want accelerators to work, even if the menus are not shown
locally, so we can't rely on the GtkMenu code to set them up
for us. Currently, this code only installs accelerators when the
window is realized.

14 years agoBloatpad: Add an accelerator in the menu
Matthias Clasen [Mon, 5 Dec 2011 22:44:03 +0000 (17:44 -0500)]
Bloatpad: Add an accelerator in the menu

14 years agoGtkApplication: Extract accelerators from menus
Matthias Clasen [Mon, 5 Dec 2011 22:41:56 +0000 (17:41 -0500)]
GtkApplication: Extract accelerators from menus

This allows to specify accelerators in a convenient way, by
adding accel="..." attributes to the menu items in the
XML for the menu.

Currently, the accelerators are extracted only once, when the
menu property is changed on the application.

14 years agoIntroduce gtkaccelmapprivate.h
Matthias Clasen [Mon, 5 Dec 2011 22:37:04 +0000 (17:37 -0500)]
Introduce gtkaccelmapprivate.h

Move internal accel map API there and update all users.
Also, add an internal function to create an accel path for
an action and parameter, and use it in gtkapplication.c and
gtkmodelmenuitem.c instead of duplicating that code.

14 years agoBloatpad: Add an accelerator
Matthias Clasen [Mon, 5 Dec 2011 22:29:32 +0000 (17:29 -0500)]
Bloatpad: Add an accelerator

14 years agoGtkApplication: Add API to install accelerators for actions
Matthias Clasen [Mon, 5 Dec 2011 22:28:19 +0000 (17:28 -0500)]
GtkApplication: Add API to install accelerators for actions

14 years agoGtkApplicationWindow: Set the accel group on constructed windows
Matthias Clasen [Mon, 5 Dec 2011 22:14:57 +0000 (17:14 -0500)]
GtkApplicationWindow: Set the accel group on constructed windows

This will make the menuitems pick up matching accel map entries
automatically. Currently, nothing creates such accel map entries,
though.

14 years agoGtkApplicationWindow: Add a GtkAccelGroup
Matthias Clasen [Mon, 5 Dec 2011 22:10:17 +0000 (17:10 -0500)]
GtkApplicationWindow: Add a GtkAccelGroup

This will be used in the following patches.

14 years agoFix a gtk-doc warning
Matthias Clasen [Mon, 5 Dec 2011 22:41:44 +0000 (17:41 -0500)]
Fix a gtk-doc warning

14 years agoGtkApplication: export windows on the bus
Ryan Lortie [Mon, 5 Dec 2011 05:27:11 +0000 (00:27 -0500)]
GtkApplication: export windows on the bus

And advertise their location on the bus using X11 properties.

14 years ago(trivially) implement 'shutdown' in GtkApplication
Ryan Lortie [Mon, 5 Dec 2011 05:25:28 +0000 (00:25 -0500)]
(trivially) implement 'shutdown' in GtkApplication

14 years agoAdd an example
Matthias Clasen [Mon, 5 Dec 2011 00:16:08 +0000 (19:16 -0500)]
Add an example

14 years agoUpdate GtkApplicationWindow docs
Matthias Clasen [Sun, 4 Dec 2011 23:40:19 +0000 (18:40 -0500)]
Update GtkApplicationWindow  docs

14 years agoWhitespace fix
Matthias Clasen [Sun, 4 Dec 2011 23:33:01 +0000 (18:33 -0500)]
Whitespace fix

14 years agoMake accelmap initialization more forgiving
Matthias Clasen [Sun, 4 Dec 2011 00:35:27 +0000 (19:35 -0500)]
Make accelmap initialization more forgiving

14 years agoClean up includes
Matthias Clasen [Sun, 4 Dec 2011 00:34:32 +0000 (19:34 -0500)]
Clean up includes

14 years agobloatpad: add proper sections to the menus
Ryan Lortie [Sat, 3 Dec 2011 23:52:35 +0000 (18:52 -0500)]
bloatpad: add proper sections to the menus

14 years agoSplit off GMenuModel -> GtkMenuBar code
Ryan Lortie [Sat, 3 Dec 2011 23:45:32 +0000 (18:45 -0500)]
Split off GMenuModel -> GtkMenuBar code

Put this in a separate file and substantially refactor it.

Move handling of submenu creation into gtkmodelmenuitem where it
belongs.

Improve our handling of when to show separators or not.

14 years agoWatch "shell shows menu" settings for changes
Ryan Lortie [Sat, 3 Dec 2011 19:55:03 +0000 (14:55 -0500)]
Watch "shell shows menu" settings for changes

Correctly monitor the GtkSettings for changes to the
"gtk-shell-shows-app-menu" and "gtk-shell-shows-menubar" properties.

14 years agoGtkSettings: quartz: shell always shows menus
Ryan Lortie [Sat, 3 Dec 2011 18:35:26 +0000 (13:35 -0500)]
GtkSettings: quartz: shell always shows menus

14 years agoWhitespace fixes
Matthias Clasen [Fri, 2 Dec 2011 23:21:10 +0000 (18:21 -0500)]
Whitespace fixes

14 years agoNever add separators to menubars
Matthias Clasen [Fri, 2 Dec 2011 23:18:58 +0000 (18:18 -0500)]
Never add separators to menubars

14 years agogmenu testcase: update to glib API changes
Ryan Lortie [Fri, 2 Dec 2011 21:10:31 +0000 (16:10 -0500)]
gmenu testcase: update to glib API changes

14 years agobloatpad: move action/menu setup to ::startup
Ryan Lortie [Fri, 2 Dec 2011 15:36:49 +0000 (10:36 -0500)]
bloatpad: move action/menu setup to ::startup

No need to waste time doing this in init() if we are not going to become
the primary instance.

14 years agobloatpad: port to GActionMap for application
Ryan Lortie [Fri, 2 Dec 2011 15:32:10 +0000 (10:32 -0500)]
bloatpad: port to GActionMap for application

g_application_set_action_group() is now deprecated.

14 years agoGtkModelMenuItem: don't leak a GVariant
Ryan Lortie [Fri, 2 Dec 2011 03:59:27 +0000 (22:59 -0500)]
GtkModelMenuItem: don't leak a GVariant

14 years agobloatpad: use GtkBuilder for constructing menus
Ryan Lortie [Fri, 2 Dec 2011 03:43:54 +0000 (22:43 -0500)]
bloatpad: use GtkBuilder for constructing menus

This is closer to what a real application would want to do.

14 years agoGtkModelMenuItem: omit indicator if not required
Ryan Lortie [Fri, 2 Dec 2011 03:33:30 +0000 (22:33 -0500)]
GtkModelMenuItem: omit indicator if not required

GtkModelMenuItem, being based on GtkCheckMenuItem, was always reserving
space for a check/radio indicator.  This ends up looking pretty strange
in a GtkMenuBar.

Don't reserve space for the indicator unless it's appropriate.

14 years agoGtkApplicationWindow: nuke some g_print spew
Ryan Lortie [Fri, 2 Dec 2011 03:16:34 +0000 (22:16 -0500)]
GtkApplicationWindow: nuke some g_print spew

14 years agoGtkApplcationWindow: plug two obvious leaks
Ryan Lortie [Fri, 2 Dec 2011 03:14:57 +0000 (22:14 -0500)]
GtkApplcationWindow: plug two obvious leaks

14 years agoGtkApplicationWindow: Consistently unparent menubar
Colin Walters [Fri, 2 Dec 2011 03:13:56 +0000 (22:13 -0500)]
GtkApplicationWindow: Consistently unparent menubar

We create it floating, and don't hold an extra ref, so we should
just unparent it.

14 years agoGtkApplicationWindow: clean up menubar logic
Ryan Lortie [Fri, 2 Dec 2011 03:01:07 +0000 (22:01 -0500)]
GtkApplicationWindow: clean up menubar logic

14 years agoOnly add a separator when a section ends
Matthias Clasen [Fri, 2 Dec 2011 01:49:05 +0000 (20:49 -0500)]
Only add a separator when a section ends

14 years agointroduce GtkModelMenuItem
Ryan Lortie [Fri, 2 Dec 2011 01:39:11 +0000 (20:39 -0500)]
introduce GtkModelMenuItem

This GtkMenuItem subclass (and GActionObserver implementation) contains
all the knowledge necessary for converting a GMenuModel item description
into a GtkMenuItem.

Remove much of the code that used to do this from
gtkapplicationwindow.c.

14 years agoGtkSettings: add shell-shows-menubar property
Ryan Lortie [Fri, 2 Dec 2011 00:57:32 +0000 (19:57 -0500)]
GtkSettings: add shell-shows-menubar property

Unity will set this to tell us that it is going to handle displaying the
menubar.

14 years agoOnly add separators when a section actually ends
Matthias Clasen [Thu, 1 Dec 2011 23:13:15 +0000 (18:13 -0500)]
Only add separators when a section actually ends

14 years agoBloatpad: Add a View menu for fullscreen
Matthias Clasen [Thu, 1 Dec 2011 22:46:28 +0000 (17:46 -0500)]
Bloatpad: Add a View menu for fullscreen

14 years agoBloatpad: Don't leak a menu model
Matthias Clasen [Thu, 1 Dec 2011 22:41:46 +0000 (17:41 -0500)]
Bloatpad: Don't leak a menu model

14 years agobloatpad: Be 640x480 by default
Colin Walters [Thu, 1 Dec 2011 22:53:28 +0000 (17:53 -0500)]
bloatpad: Be 640x480 by default

Because otherwise we're just a few pixels, and this is the least lame
solution I know of in GTK+.

14 years agoGtkApplicationWindow: Further sanitize handling of merging app menu and menubar
Colin Walters [Thu, 1 Dec 2011 22:47:34 +0000 (17:47 -0500)]
GtkApplicationWindow: Further sanitize handling of merging app menu and menubar

The _set_show_app_menu should really be _set_show_menubar().

Also, correctly display just the window menu in the window when run
under GNOME 3.

14 years agobloatpad: Fix Edit to be a submenu
Colin Walters [Thu, 1 Dec 2011 22:12:20 +0000 (17:12 -0500)]
bloatpad: Fix Edit to be a submenu

14 years agoGtkApplication: Merge app menu and menubar
Colin Walters [Thu, 1 Dec 2011 21:46:36 +0000 (16:46 -0500)]
GtkApplication: Merge app menu and menubar

Change bloatpad to have both an app menu and a menubar.

14 years agoGtkApplicationWindow: Make mnemonics work for stateful actions
Matthias Clasen [Thu, 1 Dec 2011 20:25:46 +0000 (15:25 -0500)]
GtkApplicationWindow: Make mnemonics work for stateful actions

14 years agoBloatpad: Add mnemonics to the menu
Matthias Clasen [Thu, 1 Dec 2011 20:25:24 +0000 (15:25 -0500)]
Bloatpad: Add mnemonics to the menu

14 years agoGtkApplicationWindow: Don't unref a NULL object
Colin Walters [Thu, 1 Dec 2011 18:29:41 +0000 (13:29 -0500)]
GtkApplicationWindow: Don't unref a NULL object

14 years agoAdapt to changes in GLib API
Ryan Lortie [Thu, 1 Dec 2011 17:18:22 +0000 (12:18 -0500)]
Adapt to changes in GLib API

g_application_get_menu() -> get_app_menu().

14 years agoDrop GtkApplicationMenuButton for now
Matthias Clasen [Thu, 1 Dec 2011 17:17:53 +0000 (12:17 -0500)]
Drop GtkApplicationMenuButton for now

This feels premature; we do have the fallback situation covered
adaequately with the menubar, and people can do their own creative
solutions with gtk_application_window_get_menu(), so we don't have
to offer a widget for this right now.

14 years agoRemove a redundant test
Matthias Clasen [Thu, 1 Dec 2011 13:51:22 +0000 (08:51 -0500)]
Remove a redundant test

14 years agoGtkApplicationMenuButton: add docs
Matthias Clasen [Thu, 1 Dec 2011 13:33:08 +0000 (08:33 -0500)]
GtkApplicationMenuButton: add docs